package com.panshi.service.impl;

import com.panshi.dao.DetailDao;
import com.panshi.service.DetailService;
import com.panshi.vo.ArticleOkVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class DetailServiceImpl implements DetailService {

    @Autowired
    DetailDao detailDao;

    @Override
    public ArticleOkVO getArticleOkVO(int id) {
        return detailDao.getArticleOkVO(id);
    }

    @Override
    public List<ArticleOkVO> listDetailOtherArticleOkVOs(int sort) {
        return detailDao.listDetailOtherArticleOkVOs(sort);
    }

    @Override
    public void insertReadSum(int id) {
        detailDao.insertReadSum(id);
    }
}
